<?php defined('InShopNC') or exit('Access Invalid!');?>
<div class="page">
  <div class="fixed-bar">
    <div class="item-title">
      <h3>虚拟抢购</h3>
      <ul class="tab-base">
        <li><a href="index.php?act=goods_templates&op=index"><span>活动模板管理</span></a></li>
        <li><a href="javascript:;" class="current"><span>添加活动模板</span></a></li>
        <li><a href="index.php?act=goods_templates&op=goods_templates_list"><span>模板商品管理</span></a></li>
        <li><a href="index.php?act=goods_templates&op=goods_templates_add"><span>添加模板商品</span></a></li>
      </ul>
    </div>
  </div>
  <div class="fixed-empty"></div>
  <form id="add_form" method="post"  action="index.php?act=goods_templates&op=addGt_class">
   
    <table class="table tb-type2">
      <tbody>
        <tr class="noborder">
          <td colspan="2" class="required"><label class="validation" for="class_name">活动模板名称：</label></td>
        </tr>
        <tr class="noborder">
          <td class="vatop rowform"><input type="text" name="gt_class_name" id="gt_class_name" class="txt"></td>
          
        </tr>
        
        <!-- <tr>
          <td colspan="2" class="required"><label for="class_sort" class="validation">该模板商品数量</label></td>
        </tr>
        <tr class="noborder">
          <td class="vatop rowform"><input id="gt_class_num" name="gt_class_num" type="text" class="txt" value="" /></td>

        </tr> -->
      </tbody>
      <tfoot>
        <tr>
          <td colspan="2"><a id="submit" href="javascript:void(0)" class="btn"><span><?php echo $lang['nc_submit'];?></span></a></td>
        </tr>
      </tfoot>
    </table>
  </form>
</div>
<script type="text/javascript">


$(document).ready(function(){
    $('#submit').click(function(){
		var gt_class_name=$("#gt_class_name").val();
		var gt_class_num=$("#gt_class_num").val();
		if(gt_class_name=="" || gt_class_num==""){
			alert("参数不足");
			return false;
		}
        
        $('#add_form').submit();
    });
});

</script>
